package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.platform.annotation.Excel;
import com.ruoyi.platform.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;

/**
 * 智联空间文档对象 tp_space_document
 *
 * @author ruoyi
 * @date 2022-12-19
 */
@ApiModel(value = "智联空间文档对象 tp_space_document", description = "tp_space_document业务表")
@TableName("tp_space_document")
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SpaceDocument extends BaseEntity<SpaceDocument> {

    private static final long serialVersionUID = 1L;

    /**
     * 文档ID
     */
    @ApiModelProperty(value = "文档ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 文档名
     */
    @Excel(name = "文档名")
    @ApiModelProperty(value = "文档名")
    private String name;

    /**
     * 文档类型
     */
    @Excel(name = "文档类型")
    @ApiModelProperty(value = "文档类型")
    private Long type;

    /**
     * 文档后缀
     */
    @Excel(name = "文档后缀")
    @ApiModelProperty(value = "文档后缀")
    private String suffix;

    /**
     * 文档对应文件ID
     */
    @Excel(name = "文档对应文件ID")
    @ApiModelProperty(value = "文档对应文件ID")
    private Long fileId;

    /**
     * 文档描述信息
     */
    @Excel(name = "文档描述信息")
    @ApiModelProperty(value = "文档描述信息")
    private String description;

    /**
     * 文档作者
     */
    @Excel(name = "文档作者")
    @ApiModelProperty(value = "文档作者")
    private String author;

    /**
     * 删除标志（0未删除1已删除）
     */
    @ApiModelProperty(value = "文档作者")
    private Long delFlag;

    @TableField(exist = false)
    private String fileUrl;

    @TableField(exist = false)
    private List<Long> fileIdList;

    @TableField(exist = false)
    private List<String> fileNameList;

    @TableField(exist = false)
    private String fileName;
    /**
     * 对应上级文件夹Id
     */
    @TableField(exist = false)
    private Long directoryId;

    @TableField(exist = false)
    private Long directoryType;

    @TableField(exist = false)
    private String directoryName;
}
